# 以nginx:alpine为基础镜像
FROM nginx:alpine
MAINTAINER hongfei

# 修改/usr/share/nginx/html里面的内容为前端需要部署的静态文件，这样前端就跑在nginx上了
WORKDIR /usr/share/nginx/html
RUN rm -f *

RUN rm -f /etc/nginx/conf.d/nginx.conf
RUN rm -f /etc/nginx/conf.d/xidw-web.conf

COPY nginx.conf /etc/nginx/conf.d/nginx.conf
COPY dist /usr/share/nginx/html/
